import { Injectable } from '@angular/core';
import { CookieService } from 'angular2-cookie/core';
@Injectable()
export class ConfigService {

  userinfo = {};

  constructor(private _cookies: CookieService) {
   }

  getConfig() {
    let api = 'http://xiaodian.com/';
    return api;
  }

  getImg() {
    let api = 'http://outterimg-1251816373.file.myqcloud.com/img/'
    // let api = '../assets/images/'
    return api;
  }

  change_login() {
    this._cookies.put('is_login','true');
  }
}
